package com.egene.tw.data.entity;

import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;

/**
 * Created by wzx on 2018/6/29.
 */

public class OxygenData extends RealmObject {
    @PrimaryKey
    private long time;
    private int value;
    private String userId;
    private boolean upload;

    public boolean isUpload() {
        return upload;
    }

    public OxygenData setUpload(boolean upload) {
        this.upload = upload;
        return this;
    }

    public long getTime() {
        return time;
    }

    public OxygenData setTime(long time) {
        this.time = time;
        return this;
    }

    public int getValue() {
        return value;
    }

    public OxygenData setValue(int value) {
        this.value = value;
        return this;
    }

    public String getUserId() {
        return userId;
    }

    public OxygenData setUserId(String userId) {
        this.userId = userId;
        return this;
    }
}
